package cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.node;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author pucong
 * @description 执行node信息
 * @create 2024-09-24
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ExecNodeFor extends ExecNodeProcess {

    private static final long serialVersionUID = 1L;

    /**
     * 参数类型 0静态值 1前置接口返回值 2全局参数
     */
    private Integer forDataType;

    /**
     * 循环执行的数据
     */
    private String forValue;

    /**
     * 是否异步执行
     */
    private Boolean forAsync;

    public ExecNodeFor(TaskNode taskNode) {
        super(taskNode);
        this.forAsync = taskNode.getForAsync();
        this.forDataType = taskNode.getForDataType();
        this.forValue = taskNode.getForValue();
    }

}
